home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Inspectors / AIInspector / AIView.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  42 lines

  1.  
  2. /*
  3.  * AIView.h
  4.  *
  5.  * AIView is a subclass of View responsible for managing the NXEPSImageRep
  6.  * of the ai file and also updating the information fields on the display.
  7.  *
  8.  *
  9.  * You may freely copy, distribute, and reuse the code in this example.
  10.  * Both Terrence Talbot and Digital Tool Works disclaim any warranty
  11.  * of any kind, expressed or implied, as to its fitness for any particular use.
  12.  *
  13.  * Written by:  Terrence Talbot 
  14.  *    Created:  Oct/92
  15.  *
  16.  */
  17.  
  18. #import <appkit/appkit.h>
  19.  
  20. @interface AIView:View
  21. {
  22.    NXEPSImageRep  *image;                   /* NXEPSImageRep of current ai file */
  23.    TextField      *heightField;
  24.    TextField      *widthField;
  25.    TextField      *scaleField;
  26.    NXRect          aiRect;                  /* vars kept at a more general level */
  27.    float           aspectRatio;             /* to avoid code duplication and     */
  28.    int             imageScale;              /* lockFocus hassles                 */
  29. }
  30.  
  31. /* INIT/FREE METHODS */
  32.  
  33. - free;
  34.  
  35. /* PRIVATE METHODS */
  36.  
  37. - setImageToFilename:(const char *)filename;
  38. - display;
  39. - drawSelf:(NXRect *)rects :(int)rectCount;
  40.  
  41. @end
  42.